#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import reservation_blueprint
from api_1_0.reservationResource.reservationResource import ReservationResource
from api_1_0.reservationResource.reservationOtherResource import ReservationOtherResource

api = Api(reservation_blueprint)

api.add_resource(ReservationResource, '/reservation/<re_id>', '/reservation', endpoint='Reservation')


@reservation_blueprint.route('/reservation/update/<re_id>', methods=['PUT'], endpoint='ReservationUpdate')
def update(re_id):
    return ReservationOtherResource.sensitive_update(re_id)
